Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDraft


GetPermissions

The GetPermissions method returns this draft's current permissions.

ODDraftPermissions GetPermissions ();
return value
The permissions on this draft.
DISCUSSION
The returned value specifies the kind of access that is currently allowed to this draft:

You can make changes to this draft only if its current permissions allow write access (exclusive or shared). Only the most recent draft of a document can allow write access.

The Bento container suite supports only the kODDPReadOnly and kODDPExclusiveWrite draft permissions.

SEE ALSO
Listing 2-5 on page 43 in OpenDoc Cookbook.
"Drafts" on page 285 in OpenDoc Programmer's Guide.
"The InitPartFromStorage Method" on page 295 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help